﻿using PowerHub.MES.DTO.Crew.QueryDto;
using PowerHub.MES.DTO.Shopfloor.QueryDTO;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.Entities.Crew;
using PowerHub.MES.Entities.Shopfloor;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IRepository.ICrew
{
    /// <summary>
    ///班组明细数据接口层
    /// </summary>
    public interface ICrew_TeamBillDetialRepository
    {
        /// <summary>
        /// 获取班组明细用户列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<BasicData_Userinfo>>> GetCrew_TeamBillDetialPageListAsync(QueryCrew_TeamBillDetialDTO query);

        /// <summary>
        /// 获取班组明细列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<List<Crew_TeamBillDetial>> GetCrew_TeamBillDetialListAsync(string id);

        /// <summary>
        /// 添加班组明细
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateCrew_TeamBillDetialAsync(Crew_TeamBillDetial query);

        /// <summary>
        /// 批量删除班组明细
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionCrew_TeamBillDetialAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateCrew_TeamBillDetialAsync(List<Crew_TeamBillDetial> addcrew_TeamBillDetials, List<Crew_TeamBillDetial> deletecrew_TeamBillDetials);

      
    }
}
